package com.training.iyogo.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.training.iyogo.dao.IScheduleDAO;
import com.training.iyogo.domain.Schedule;
import com.training.iyogo.service.IScheduleService;

@Service
public class ScheduleService implements IScheduleService {
	@Autowired
	private IScheduleDAO scheduleDao;
	
	@Override
	public void addSchedule(Schedule schedule) {
		scheduleDao.save(schedule);
		
	}

	@Override
	public Schedule getByTime(String time) {
		// TODO Auto-generated method stub
		return scheduleDao.findByTime(time);
	}
}
